<?php

namespace App\Models\Purchase;

use App\Models\Manger\Manger;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class ApprovalHistory extends Model
{
    protected $table = 'approval_histories';
    public $timestamps = false;
    protected $primaryKey = 'id';
    protected $guarded = ['_token'];

    public function approver(){
        return $this->hasOne(Manger::class, 'id', 'approver_id')->select('id', 'realname')->orderBy('id','asc');
    }



}
